<?php 
namespace Admin\Model;
use Think\Model\ViewModel;
class CxViewModel extends ViewModel {
   public $viewFields = array(
     'Shop'=>array('id','account','_type'=>'LEFT'),
     'Agent'=>array('_on'=>'Shop.pid=Agent.id'),
   );
 }


 ?>